package top.fangw.common.api.openfign.admin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import top.fangw.common.api.vo.InitRoleJoinApplication;
import top.fangw.common.api.vo.InitTenantApplication;
import top.fangw.common.core.result.Result;

/**
 * @description: 应用管理
 * @author: fgw
 * @createDate: 2024/3/6
 */
@FeignClient(name = "cloud-admin")
public interface IApplicationServiceFeign {

    /**
     * 初始化租户应用信息
     * @param initTenantApplication 初始化租户应用信息
     * @return 初始化租户应用信息
     */
    @PostMapping("/sys-application/initTenantApplication")
    Result<?> initTenantApplication(@RequestBody InitTenantApplication initTenantApplication);



    @PostMapping("/sys-role-join-application/initRoleJoinApplication")
    Result<?> initRoleJoinApplication(@RequestBody InitRoleJoinApplication initRoleJoinApplication);
}
